package com.by.bean;

import com.by.group.ISave;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;

/**
 * @author :LYJ
 * @version : 1.0
 * @date : 2025/2/17 19:28
 * @desc :
 * @since : JDK17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "供应商")
public class Supplier {
    @ApiModelProperty(value = "供应商id,修改时不允许为空!")
    Integer id;
    @ApiModelProperty(value = "供应商名称")
    String name;
    @ApiModelProperty(value = "地区")
    String area;
    @ApiModelProperty(value = "地址")
    String address;
    @ApiModelProperty(value = "公司简介")
    String desc;
    @ApiModelProperty(value = "主营产品分类")
    String fication;
    @ApiModelProperty(value = "报价系数")
    private String quotation;
    @ApiModelProperty(value = "可以生产的材料种类(0不能,1可以)")
    private Integer mn13cr2;
    @ApiModelProperty(value = "可以生产的材料种类(0不能,1可以)")
    private Integer mn18cr2;
    @ApiModelProperty(value = "可以生产的材料种类(0不能,1可以)")
    private Integer mn22cr2;
    @ApiModelProperty(value = "高碳高耐磨合金钢加陶瓷(0不能,1可以)")
    private Integer metal12;
    @ApiModelProperty(value = "高碳高耐磨cr26加陶瓷(0不能,1可以)")
    private Integer cr26;
    @ApiModelProperty(value = "可以生产的材料种类(0不能,1可以)")
    private Integer metal11;
    @Column(name = "cr26_add")
    @ApiModelProperty(value = "低碳耐磨C26加陶瓷(0不能,1可以)")
    private Integer cr26Add;
    @Column(name = "cr28_add")
    @ApiModelProperty(value = "高碳高耐磨C28加陶瓷(0不能,1可以)")
    private Integer cr28Add;
    @ApiModelProperty(value = "合金钢(0不能,1可以)")
    private Integer alloyed;
    @Column(name = "high_cr26")
    @ApiModelProperty(value = "高碳高耐磨C26(0不能,1可以)")
    private Integer highCr26;
    @ApiModelProperty(value = "高铬铸铁KmTBCr26Mo0.5(0不能,1可以)")
    private Integer kmt;
    @ApiModelProperty(value = "高碳高耐磨合金钢(0不能,1可以)")
    private Integer hhras;
    @ApiModelProperty(value = "Tic材质(0不能,1可以)")
    private Integer tic;
    @Column(name = "eight_grade")
    @ApiModelProperty(value = "8.8级(0不能,1可以)")
    private Integer eightGrade;
    @Column(name = "ten_grade")
    @ApiModelProperty(value = "10.9级(0不能,1可以)")
    private Integer tenGrade;
    @Column(name = "twelve_grade")
    @ApiModelProperty(value = "12.9材质(0不能,1可以)")
    private Integer twelveGrade;
    @ApiModelProperty(value = "营业执照")
    private String licence;
    @ApiModelProperty(value = "logo")
    private String logo;
    @ApiModelProperty(value = "是否删除(0未删除,1已删除)")
    private Integer isdel;

    @ApiModelProperty("账号")
    @NotBlank(message = "账号不能为空！", groups = {ISave.class})
    String account;

    @ApiModelProperty("密码")
    @NotBlank(message = "密码不能为空！", groups = {ISave.class})
    String password;

    @Valid
    SupplierContact contact;
}
